Hệ thống quản lý phòng khám trực tuyến bằng PHP

1 <?php if(!isset($Translation)){ @header('Location: index.php?signIn=1'); exit; } ?>
2 <?php include_once(
"$currDir/header.php"); ?>
3
4 <?php
if($_GET['loginFailed']){ ?>
5     <div
class="alert alert-danger"><?php echo $Translation['login failed']; ?></div>
6 <?php } ?>
7
8 <div
class="row">
9     <div
class="col-sm-6 col-lg-8" id="login_splash">
10         <!-- customized splash content here -->
11     </div>
12     <div
class="col-sm-6 col-lg-4">
13         <div
class="panel panel-success">
14
15             <div
class="panel-heading">
16                 <h1
class="panel-title"><strong><?php echo $Translation['sign in here']; ?></strong></h1>
17                 <?php
if(sqlValue("select count(1) from membership_groups where allowSignup=1")){ ?>
18                     <a
class="btn btn-success pull-right" href="membership_signup.php"><?php echo $Translation['sign up']; ?></a>
19                 <?php } ?>
20                 <div
class="clearfix"></div>
21             </div>
22
23             <div
class="panel-body">
24                 <form method=
"post" action="index.php">
25                     <div
class="form-group">
26                         <label
class="control-label" for="username"><?php echo $Translation['username']; ?></label>
27                         <input
class="form-control" name="username" id="username" type="text" placeholder="<?php echo $Translation['username']; ?>" required>
28                     </div>
29                     <div
class="form-group">
30                         <label
class="control-label" for="password"><?php echo $Translation['password']; ?></label>
31                         <input
class="form-control" name="password" id="password" type="password" placeholder="<?php echo $Translation['password']; ?>" required>
32                         <span
class="help-block"><?php echo $Translation['forgot password']; ?></span>
33                     </div>
34                     <div
class="checkbox">
35                         <label
class="control-label" for="rememberMe">
36                             <input type=
"checkbox" name="rememberMe" id="rememberMe" value="1">
37                             <?php echo $Translation[
'remember me']; ?>
38                         </label>
39                     </div>
40
41                     <div
class="row">
42                         <div
class="col-sm-offset-3 col-sm-6">
43                             <button name=
"signIn" type="submit" id="submit" value="signIn" class="btn btn-primary btn-lg btn-block"><?php echo $Translation['sign in']; ?></button>
44                         </div>
45                     </div>
46                 </form>
47             </div>
48
49             <?php
if(is_array(getTableList()) && count(getTableList())){ /* if anon. users can see any tables ... */ ?>
50                 <div
class="panel-footer">
51                     <?php echo $Translation[
'browse as guest']; ?>
52                 </div>
53             <?php } ?>
54
55         </div>
56     </div>
57 </div>
58
59 <script>document.getElementById(
'username').focus();</script>
60 <?php include_once(
"$currDir/footer.php"); ?>


Gõ tìm kiếm nhanh...